<?php $this->load->view('layout/lottery/header') ?>
<div class="lotteryMain">
	<ol class="breadcrumb">
		<li><a href="<?php echo site_url('lottery/index'); ?>">活动列表</a></li>
		<li>添加活动</li>
	</ol>
	<div class="panel panel-default">
		<div class="panel-heading">添加活动</div>
		<div class="panel-body">
	  		<form class="form-horizontal form-editlotery" method="post" id="lottery-form" action="<?php echo site_url('lottery/lotteryAddPost'); ?>" enctype="multipart/form-data">
	  			<div class="clearfix form-text">
	  				<div class="form-group clearfix w2">
					    <label class="control-label"><i class="require">*</i>活动名称</label>
					    <input type="text" name="lottery_name" class="form-control txt" placeholder="请输入活动名称">
					    <span class="error"></span>
					</div>
					<div class="form-group clearfix w2">
					    <label class="control-label"><i class="require">*</i>活动状态</label>
					    <select name="status">
					    	<option value="1">上架</option>
					    	<option value="2">下架</option>
					    </select>
					    <span class="error"></span>
					</div>
					<div class="form-group clearfix w2">
					    <label class="control-label"><i class="require">*</i>可抽奖次数</label>
					    <input type="text" name="lottery_sum" class="form-control txt" placeholder="请输入抽奖次数">
					    <span class="error"></span>
					</div>
					<div class="form-group clearfix w2">
					    <label class="control-label"><i class="require">*</i>可中奖次数</label>
					    <input type="text" name="winning_num" class="form-control txt" placeholder="请输入中奖次数">
					    <span class="error"></span>
					</div>
					<div class="form-group clearfix w2">
					    <label class="control-label"><i class="require">*</i>开始日期</label>
					    <input type="text" name="start_date" class="form-control txt" placeholder="请输入抽奖开始日期" onclick="calendar.show({ id: this, minDay : '<?php echo date('Y-m-d'); ?>' })" readonly="true">
					    <span class="error"></span>
					</div>
					<div class="form-group clearfix w2">
					    <label class="control-label"><i class="require">*</i>截止日期</label>
					    <input type="text" name="end_date" class="form-control txt" placeholder="请输入抽奖截止日期" onclick="calendar.show({ id: this, minDay : '<?php echo date('Y-m-d'); ?>' })" readonly="true">
					    <span class="error"></span>
					</div>
					<div class="form-group clearfix w2">
					    <label class="control-label">活动标题1</label>
					    <input type="text" class="form-control txt" name="title1" placeholder="请输入少于9个字标题" />
					    <span class="error"></span>
					</div>
					<div class="form-group clearfix w2">
					    <label class="control-label">活动标题2</label>
					    <input type="text" class="form-control txt" name="title2" placeholder="请输入少于9个字标题" />
					    <span class="error"></span>
					</div>
					<div class="form-group clearfix lot-tit">
					    <label class="control-label">活动标题3</label>
					    <input type="text" class="form-control txt" name="title3" placeholder="请输入少于21个字标题"/>
					    <span class="error"></span>
					</div>
					<div class="form-group clearfix w1">
					    <label class="control-label"><i class="require">*</i>活动坐标</label>
					    <label class="radio-inline">
				        	<input type="radio" name="on_line" value="1" checked="checked" />
				          线上
				        </label>
				        <label class="radio-inline">
				        	<input type="radio" name="on_line" value="2" />
				          现场
				        </label>
					</div>
					<div class="form-group clearfix w1 recommend my-hide">
					    <label class="control-label">指定用户</label>
					    <div class="recommend-list">
						    <span class="recommend-item">
							    <input type="text" class="form-control txt" name="reseller_name[]" placeholder="请输入推荐账号"/>
							    <a href="javascript:;">删除</a>
						    </span>
					    </div>
					    <button class="btn btn-default recommend-btn">新增推荐账号</button>
					</div>
					<div class="form-group clearfix w1">
						<label class="control-label">推广链接</label>
						<input type="text" name="links" class="form-control txt" ">
						<span class="error"></span>
					</div>
					<div class="form-group clearfix w1">
						<label class="control-label">活动详情</label>
						<textarea name="content"></textarea>
					</div>
					<div class="form-group clearfix w1">
						<label class="control-label">广告链接1</label>
						<input type="text" name="ad_links1" class="form-control txt"">
						<span class="error"></span>
					</div>
					<div class="form-group clearfix prize-file w1">
					    <label class="control-label">广告位</label>
                        <input type="file" name="ad_image1"/>
					    <span class="error">注:图片尺寸640x80</span>
				    </div>
					<div class="form-group clearfix w1">
						<label class="control-label">广告链接2</label>
						<input type="text" name="ad_links2" class="form-control txt">
						<span class="error"></span>
					</div>
					<div class="form-group clearfix prize-file w1">
						<label class="control-label">广告位2</label>
                        <input type="file" name="ad_image2"/>
					    <span class="error">注:图片尺寸576x153</span>
				    </div>
				    <div class="form-group clearfix w1">
						<label class="control-label">金币使用链接</label>
						<input type="text" name="bonus_links" class="form-control txt" ">
						<span class="error"></span>
					</div>
				</div>
				<div class="clearfix form-btns">
					<input type="submit" value="保存" class="btn btn-submit" />
					<a class="btn btn-gray" href="<?php echo site_url('lottery/index'); ?>" />返回</a>
				</div>
			</form>
		</div>
	</div>
</div>

<?php $this->load->view('layout/lottery/footer') ?>
<?php $this->load->view('layout/lottery/message') ?>